home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
10%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ISO-8859 text
| default (weak)
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 61 72 74 65 6d 69 73 2e | 73 74 6f 2e 66 64 61 74 |artemis.|sto.fdat|
|00000030| 61 2e 73 65 21 6e 65 77 | 73 0a 46 72 6f 6d 3a 20 |a.se!new|s.From: |
|00000040| 4e 69 6b 6c 61 73 20 4d | 65 6c 6c 69 6e 20 3c 6e |Niklas M|ellin <n|
|00000050| 69 6b 6c 61 73 2e 6d 65 | 6c 6c 69 6e 40 73 74 6f |iklas.me|llin@sto|
|00000060| 2e 66 64 61 74 61 2e 73 | 65 3e 0a 53 75 62 6a 65 |.fdata.s|e>.Subje|
|00000070| 63 74 3a 20 52 65 3a 20 | 48 65 6c 70 20 77 69 74 |ct: Re: |Help wit|
|00000080| 68 20 74 79 70 65 63 61 | 73 74 69 6e 67 20 28 65 |h typeca|sting (e|
|00000090| 61 73 79 20 6f 6e 65 29 | 2e 2e 2e 0a 53 65 6e 64 |asy one)|....Send|
|000000a0| 65 72 3a 20 6e 65 77 73 | 40 61 72 74 65 6d 69 73 |er: news|@artemis|
|000000b0| 2e 73 74 6f 2e 66 64 61 | 74 61 2e 73 65 20 28 55 |.sto.fda|ta.se (U|
|000000c0| 73 65 4e 65 74 20 4e 65 | 74 4e 65 77 73 29 0a 4d |seNet Ne|tNews).M|
|000000d0| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 33 31 36 45 |essage-I|D: <316E|
|000000e0| 32 44 33 33 2e 35 41 45 | 42 40 73 74 6f 2e 66 64 |2D33.5AE|B@sto.fd|
|000000f0| 61 74 61 2e 73 65 3e 0a | 44 61 74 65 3a 20 46 72 |ata.se>.|Date: Fr|
|00000100| 69 2c 20 31 32 20 41 70 | 72 20 31 39 39 36 20 31 |i, 12 Ap|r 1996 1|
|00000110| 30 3a 31 35 3a 31 35 20 | 47 4d 54 0a 54 6f 3a 20 |0:15:15 |GMT.To: |
|00000120| 54 47 43 6f 6c 77 65 6c | 6c 20 3c 73 6e 6f 77 62 |TGColwel|l <snowb|
|00000130| 75 6c 6c 40 73 69 65 72 | 72 61 2e 6e 65 74 3e 0a |ull@sier|ra.net>.|
|00000140| 43 6f 6e 74 65 6e 74 2d | 54 72 61 6e 73 66 65 72 |Content-|Transfer|
|00000150| 2d 45 6e 63 6f 64 69 6e | 67 3a 20 37 62 69 74 0a |-Encodin|g: 7bit.|
|00000160| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 74 65 |Content-|Type: te|
|00000170| 78 74 2f 70 6c 61 69 6e | 3b 20 63 68 61 72 73 65 |xt/plain|; charse|
|00000180| 74 3d 75 73 2d 61 73 63 | 69 69 0a 52 65 66 65 72 |t=us-asc|ii.Refer|
|00000190| 65 6e 63 65 73 3a 20 3c | 33 31 36 44 44 32 43 37 |ences: <|316DD2C7|
|000001a0| 2e 34 35 36 36 40 73 69 | 65 72 72 61 2e 6e 65 74 |.4566@si|erra.net|
|000001b0| 3e 0a 4d 69 6d 65 2d 56 | 65 72 73 69 6f 6e 3a 20 |>.Mime-V|ersion: |
|000001c0| 31 2e 30 0a 58 2d 4d 61 | 69 6c 65 72 3a 20 4d 6f |1.0.X-Ma|iler: Mo|
|000001d0| 7a 69 6c 6c 61 20 32 2e | 30 20 28 57 69 6e 4e 54 |zilla 2.|0 (WinNT|
|000001e0| 3b 20 49 29 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f |; I).Org|anizatio|
|000001f0| 6e 3a 20 57 4d 2d 64 61 | 74 61 20 46 f6 72 73 76 |n: WM-da|ta F.rsv|
|00000200| 61 72 73 64 61 74 61 20 | 41 42 2c 20 53 77 65 64 |arsdata |AB, Swed|
|00000210| 65 6e 0a 0a 54 47 43 6f | 6c 77 65 6c 6c 20 77 72 |en..TGCo|lwell wr|
|00000220| 6f 74 65 3a 0a 3e 20 0a | 3e 20 43 61 6e 20 73 6f |ote:.> .|> Can so|
|00000230| 6d 65 6f 6e 65 20 74 65 | 6c 6c 20 6d 65 20 77 68 |meone te|ll me wh|
|00000240| 61 74 20 74 68 65 20 64 | 69 66 66 65 72 65 6e 63 |at the d|ifferenc|
|00000250| 65 73 20 61 72 65 20 62 | 65 74 77 65 65 6e 20 74 |es are b|etween t|
|00000260| 68 65 0a 3e 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6e |he.> fol|lowing n|
|00000270| 6f 74 61 74 69 6f 6e 73 | 20 61 6e 64 20 77 68 65 |otations| and whe|
|00000280| 6e 20 74 6f 20 75 73 65 | 20 77 68 69 63 68 20 6f |n to use| which o|
|00000290| 6e 65 3a 0a 3e 20 0a 3e | 20 78 20 3d 20 66 6c 6f |ne:.> .>| x = flo|
|000002a0| 61 74 28 69 6e 74 5f 76 | 61 72 29 0a 3e 20 78 20 |at(int_v|ar).> x |
|000002b0| 3d 20 28 66 6c 6f 61 74 | 29 69 6e 74 5f 76 61 72 |= (float|)int_var|
|000002c0| 0a 0a 54 68 65 72 65 20 | 69 73 20 6e 6f 20 64 69 |..There |is no di|
|000002d0| 66 66 65 72 65 6e 63 65 | 2e 20 54 68 65 20 66 69 |fference|. The fi|
|000002e0| 72 73 74 20 6e 6f 74 61 | 74 69 6f 6e 20 69 73 20 |rst nota|tion is |
|000002f0| 69 6e 68 65 72 69 74 65 | 64 20 66 72 6f 6d 20 43 |inherite|d from C|
|00000300| 2c 20 74 68 65 20 32 6e | 64 0a 69 73 20 76 61 6c |, the 2n|d.is val|
|00000310| 69 64 20 69 6e 20 43 2b | 2b 20 62 75 74 20 6e 6f |id in C+|+ but no|
|00000320| 74 20 69 6e 20 43 2e 20 | 54 68 65 72 65 20 69 73 |t in C. |There is|
|00000330| 20 6e 6f 77 20 61 20 33 | 72 64 20 77 61 79 20 74 | now a 3|rd way t|
|00000340| 6f 20 69 74 2c 20 77 68 | 69 63 68 20 73 6f 6d 65 |o it, wh|ich some|
|00000350| 0a 70 65 6f 70 6c 65 20 | 68 61 74 65 20 61 6e 64 |.people |hate and|
|00000360| 20 6f 68 74 65 72 73 20 | 6c 69 6b 65 20 28 49 20 | ohters |like (I |
|00000370| 61 6d 20 61 6d 6f 6e 67 | 73 74 20 74 68 6f 73 65 |am among|st those|
|00000380| 20 77 68 6f 20 6c 69 6b | 65 20 69 74 29 3a 0a 0a | who lik|e it):..|
|00000390| 78 20 3d 20 73 74 61 74 | 69 63 5f 63 61 73 74 3c |x = stat|ic_cast<|
|000003a0| 66 6c 6f 61 74 3e 28 69 | 6e 74 5f 76 61 72 29 3b |float>(i|nt_var);|
|000003b0| 0a 0a 43 61 73 74 69 6e | 67 20 69 73 20 67 65 6e |..Castin|g is gen|
|000003c0| 65 72 61 6c 6c 79 20 62 | 61 64 2c 20 61 6e 64 20 |erally b|ad, and |
|000003d0| 73 68 6f 75 6c 64 20 62 | 65 20 61 76 6f 69 64 20 |should b|e avoid |
|000003e0| 61 73 20 6c 6f 6e 67 20 | 61 73 20 70 6f 73 73 69 |as long |as possi|
|000003f0| 62 6c 65 2c 20 73 6f 20 | 61 6e 0a 65 78 70 6c 69 |ble, so |an.expli|
|00000400| 63 69 74 20 6e 6f 74 61 | 74 69 6f 6e 20 6c 69 6b |cit nota|tion lik|
|00000410| 65 20 74 68 69 73 20 6f | 6e 65 20 69 73 20 67 6f |e this o|ne is go|
|00000420| 6f 64 20 69 6e 20 6d 79 | 20 6f 70 69 6e 69 6f 6e |od in my| opinion|
|00000430| 2e 0a 0a 42 65 63 61 75 | 73 65 20 74 68 65 20 63 |...Becau|se the c|
|00000440| 6f 6d 70 69 6c 65 72 20 | 63 61 6e 20 68 61 6e 64 |ompiler |can hand|
|00000450| 6c 65 20 74 68 65 20 63 | 6f 6e 76 65 72 73 69 6f |le the c|onversio|
|00000460| 6e 20 66 72 6f 6d 20 61 | 6e 20 69 6e 74 20 74 6f |n from a|n int to|
|00000470| 20 61 6e 20 66 6c 6f 61 | 74 0a 74 68 65 20 66 6f | an floa|t.the fo|
|00000480| 6c 6c 6f 77 69 6e 67 20 | 69 73 20 61 6c 73 6f 20 |llowing |is also |
|00000490| 76 61 6c 69 64 20 43 2b | 2b 3a 0a 0a 66 6c 6f 61 |valid C+|+:..floa|
|000004a0| 74 20 78 3b 0a 69 6e 74 | 20 69 6e 74 5f 76 61 72 |t x;.int| int_var|
|000004b0| 3b 0a 0a 78 20 3d 20 69 | 6e 74 5f 76 61 72 3b 20 |;..x = i|nt_var; |
|000004c0| 2f 2f 20 43 6f 6d 70 69 | 6c 65 72 20 68 61 6e 64 |// Compi|ler hand|
|000004d0| 6c 65 73 20 63 6f 6e 76 | 65 72 73 69 6f 6e 20 69 |les conv|ersion i|
|000004e0| 6d 70 6c 69 63 69 74 6c | 79 0a 20 0a 3e 20 41 6c |mplicitl|y. .> Al|
|000004f0| 73 6f 2c 20 61 72 65 20 | 74 68 65 73 65 20 65 71 |so, are |these eq|
|00000500| 75 69 76 61 6c 65 6e 74 | 3a 0a 3e 20 0a 3e 20 78 |uivalent|:.> .> x|
|00000510| 20 3d 20 66 6c 6f 61 74 | 28 33 29 0a 3e 20 78 20 | = float|(3).> x |
|00000520| 3d 20 33 2e 30 66 0a 0a | 59 65 73 2e 20 41 6c 73 |= 3.0f..|Yes. Als|
|00000530| 6f 20 74 68 69 73 20 69 | 73 20 65 71 75 69 76 61 |o this i|s equiva|
|00000540| 6c 65 6e 74 20 28 69 66 | 20 78 20 69 73 20 6f 66 |lent (if| x is of|
|00000550| 20 74 79 70 65 20 66 6c | 6f 61 74 20 6f 72 20 64 | type fl|oat or d|
|00000560| 6f 75 62 6c 65 29 3a 0a | 78 20 3d 20 33 3b 20 0a |ouble):.|x = 3; .|
|00000570| 0a 2d 2d 2d 0a 4e 69 6b | 6c 61 73 20 4d 65 6c 6c |.---.Nik|las Mell|
|00000580| 69 6e 0a | |in. | |
+--------+-------------------------+-------------------------+--------+--------+